<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>用户操作信息详情</title>
</head>
<body>

<div class="layui-fluid">

    <div class="layui-card">
        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <div class="layui-card-header" style="margin-top:10px;"><b>基本信息</b></div>
            <div class="layui-split">&nbsp;</div>

            <div th:if="${staffLogVO.staffName} != null" class="layui-form-item">
                <label class="layui-form-label">姓名：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.staffName}">姓名</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">公司：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.companyName}">公司</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">平台：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:if="${staffLogVO.plat} == 10" th:text="啄木鸟">平台</span>
                        <span th:if="${staffLogVO.plat} == 20" th:text="言而有信">平台</span>
                        <span th:if="${staffLogVO.plat} == 30" th:text="一步维修">平台</span>
                        <span th:if="${staffLogVO.plat} == 40" th:text="川南维保">平台</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">部门：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.deptName}">部门</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">APP：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.app}">APP</span>
                    </div>
                </div>
            </div>

            <div class="layui-card-header" style="margin-top:10px;"><b>请求信息</b></div>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label">Cookie：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.cookie}">Cookie</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">Method：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.method}">Method</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">SESSION：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.session}">SESSION</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">User-Agent：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.userAgent}">User-Agent</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">Referer：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.referer}">跳转链接</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">参数：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.params}">参数</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">Content-Length：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.contentLenth}">Content-Length</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">返回状态：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.status}">返回状态</span>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">Content-Type：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffReqVO.contentType}">Content-Type</span>
                    </div>

                </div>
            </div>

            <div class="layui-card-header" style="margin-top:10px;"><b>ip信息</b></div>
            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label">IP：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.ip}">IP</span>
                    </div>
                </div>
            </div>

            <div th:if="${staffLogVO.ipInfoVo} != null" class="layui-form-item">
                <label class="layui-form-label">省：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.ipInfoVo.province}">省</span>
                    </div>
                </div>
            </div>

            <div th:if="${staffLogVO.ipInfoVo} != null" class="layui-form-item">
                <label class="layui-form-label">市：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.ipInfoVo.city}">市</span>
                    </div>
                </div>
            </div>

            <div th:if="${staffLogVO.ipInfoVo} != null" class="layui-form-item">
                <label class="layui-form-label">简要地址信息：</label>
                <div class="layui-input-block">
                    <div class="layui-form-mid">
                        <span th:text="${staffLogVO.ipInfoVo.addressBrief}">简要地址信息</span>
                    </div>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item layui-layout-admin">
                <div class="layui-input-block">
                    <div class="layui-footer" style="left: 0;">
                        <button type="reset" onclick="cancel()" class="layui-btn layui-btn-primary">取消</button>
                    </div>
                </div>
            </div>

        </form>
    </div>
</div>

<script type="application/javascript">
    // 取消
    function cancel() {
        let index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index);
    }
</script>

</body>
</html>